package org.gtugs.omsk.funnycats.scenes;

import org.cocos2d.layers.CCLayer;
import org.cocos2d.nodes.CCDirector;
import org.cocos2d.nodes.CCLabel;

public class GameInterface extends CCLayer{
	public GameInterface(){
		mLabelScore.setPosition(50, CCDirector.sharedDirector().displaySize().height - 20);
		mLabelTime.setPosition(CCDirector.sharedDirector().displaySize().width - 50, CCDirector.sharedDirector().displaySize().height - 20);
		
		addChild(mLabelScore);
		addChild(mLabelTime);
	}
	
	public void setTime(float time){
		mLabelTime.setString(Float.toString((float)Math.round(10*time)/10));
	}
	
	public void setScore(int score){
		mLabelScore.setString(Integer.toString(score));		
	}
	
	private CCLabel mLabelScore = CCLabel.makeLabel("Score", "Arial", 26);
	private CCLabel mLabelTime	= CCLabel.makeLabel("Time", "Arial", 26);
}
